home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_1
/
dooratio.zip
/
DOORATIO.DOC
< prev
next >
Wrap
Text File
|
1992-06-28
|
5KB
|
106 lines
DOORATIO <c> 1992 Karl Schneider
8505 Woodwick Ct.
Tampa, FL 33615
Voice: 813-884-9661 days/eves
BBS: " " " MIDNIGHT-0800 E.S.T.
(14.4 HST)
-------------------------------------------------------------------------
6-28-92: Bug fix: Was not consistently finding ACTIVITY.00x filepath
resulting in ERRORLEVEL 3 exit. Fixed. Was not returning correct
errorlevel 2 for color callers. Fixed.
Slight changes in OUTFILE.EXE - does not now send the 'Warning,
60 seconds to go' message and the 'end of file' message.
-------------------------------------------------------------------------
6-22-92: Bug fix: Was not finding SECLEVEL.DAT file when user had
over 30 conferences selected. Should now work up to 999. Now allows
for 0 (zero) entered in Makewild Ratio in the callers security pro-
file which will disregard ratios. Also, ERRORLEVEL CHANGES have been
made. See below and sample .BAT file.
-------------------------------------------------------------------------
DOORATIO is a Wildcat 3.x+ utility which will allow any DOOR or
HOOK to reject a caller if his Download/Upload Ratio exceeds that
allowed for his security level in MAKEWILD. It was requested by a
fellow WC sysop who wants to limit access to a ROMBRAIN Door
(CD-ROM Downloads) by 'file hogs', but it can be easily adapted to
any other DOS activity called directly from Wildcat.
DOORATIO goes into a DOOR or HOOK batch file. It runs very fast and
exits with the following ERRORLEVELS:
3: The program was unable to open some necessary file. Installed
wrong.
2: The users ratio is OVER the maximum allowable in MAKEWILD, and
is using COLOR mode
1: Users ratio is OVER the maximum and is using MONO mode
0: Users ratio is OK (under) the allowed.
I have also included a copy of OUTFILE.EXE which can, if you wish,
be used to send an ASCII or ANSI message to the caller after rejecting
access, similar to the way in which Wildcat sends RATIO.BBS for Downloads.
OUTFILE does NOT at this time support the Wildcat @CODES@, so do NOT
specify the RATIO.BBS file that comes with Wildcat.
Put the .EXE files anywhere in your PATH - Wildcat will take care
of running them from the proper directory.
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
You MUST HAVE the WCNODEID Environment variable set! This is done
either in AUTOEXEC.BAT (usually) for a single node system, or in
one of your CATx.BAT files for multi-line systems.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Here's a sample DOOR batch file using DOORATIO. Note this could also
be a FILEx.BAT, etc. (any of the 'hooks') In a multinode system,
this will be DOORx.RUN, etc.
dooratio
*if errorlevel 3 goto bad_cmd
if errorlevel 2 goto bad_ratio2
if errorlevel 1 goto bad_ratio1
REM Here, put the regular commands for the door or hook
goto end
*:bad_cmd
*echo PROGRAM ERROR
*pause
*goto end
:bad_ratio2
outfile \wc30\sorry.ans 1
goto end
:bad_ratio1
outfile \wc30\sorry.asc 1
:end
----------------------------------------------------------------
Edit the 'sorry' pathnames as desired, and remove the * asterisks.
'sorry.ans' could be an ANSI color display file for color users
and 'sorry.asc' is a plain ASCII type for mono callers. The '1'
in the OUTFILE commands means that the program will automatically
exit 1 minute after the file is transmitted. See OUTFILE.DOC for
full information on this program.
When the program is operating properly you can remove those lines
now starting with *.
When the caller is rejected from the Door or Hook by DOORATIO, a line
will be added to the appropriate ACTIVITY.xxx file just like Wildcat
does when a DOWNLOAD request is denied. It says something like:
* Over download ratio, request denied. Current ratio is 24
I've tested this program as thoroughly as I can, and believe it to
be bug-free. Please report any problems to me, and understand that
I'm unable to give any sort of warranty concerning its usability, etc.
It's pretty straightforward and I can't see how it could cause any
trouble. If it's helpful I would very much appreciate you registering
it. Any contribution over $35 will give you full registration and
support on ALL my Wildcat utilities. Thanks!
-eof-